<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"> <h:head>
	<title>JSF 2.0: Blank Starting-Point Project</title>
	<style type="text/css">
body {
	background-image: url("images/bg-logon.gif");
	width: 1000px;
	margin: 0 auto;
	padding-top: 55px;
}

.error{
color:red;
}
</style>
</h:head> <h:body>
	<h1>LIST OF USERS IN THE DATABASE</h1>

	<h:dataTable value="#{userBean.list}" var="user" border="1">
		<f:facet name="header">
			<h:outputText value="Manage Users"></h:outputText>
		</f:facet>

		<h:column>
			<f:facet name="header">
				<h:outputText value="User name"></h:outputText>
			</f:facet>
			<h:outputText value="#{user.userName}"></h:outputText>
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:outputText value="Password"></h:outputText>
			</f:facet>
			<h:outputText value="#{user.password}"></h:outputText>
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:outputText value="Role"></h:outputText>
			</f:facet>
			<h:outputText value="#{user.role}"></h:outputText>
		</h:column>
	</h:dataTable>
</h:body> </html>